<form data-auto-form action="{:request()->url()}"  method="post">
    <input type="hidden" name="id" value="{$model.id|default=''}">
    <div class="form-group">
        <label class="col-xs-12" for="name">角色名称</label>
        <input class="form-control" type="text" id="name" name="name" placeholder="角色名称" value="{$model.name|default=''}">
    </div>
</form>